package jm.java.GC;

import com.sun.corba.se.spi.ior.ObjectKey;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description 展示GC Root 对象
 * @date 2022/3/20 14:51
 */
public class ShowGCRoot {
    public static void main(String[] args) throws IOException {
        List<Object> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        System.out.println(1);
        System.in.read();

        list = null;
        System.out.println(2);
        System.in.read();
        System.out.println("end...");
    }
}
